package com.itheima.file;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Iterator;

public class FileDemo1 {
    public static void main(String[] args) throws IOException {

        File f1=new File("D:\\itcast\\java.txt");
        System.out.println(f1.createNewFile());
        System.out.println(f1);
        File f2=new File("D:\\itcast","java.txt");
        System.out.println(f2);
        File f3=new File(f1,"java.txt");
        System.out.println(f3);
        //FileInputStream
        //InputStreamReader
    }
}
